package lib

type StrIterator struct {
	*Iterator
	data []string
}

func IteratorForStr(data []string) *StrIterator {
	return &StrIterator{data: data, Iterator: &Iterator{len: len(data)}}
}

func (i *StrIterator) Next() string {
	defer func() {
		i.Iterator.index++
	}()
	return i.data[i.Iterator.index]
}
